-- GENERATED SPELL FOR [Goblin Woodcarver] --


function spell0_641(pUnit, Event) --@Axe Toss,n/a--
pUnit:FullCastSpellOnTarget(6466,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_641', 3318, 1)
end

function spell1_641(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(40505,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_641', 595, 1)
end

function Sorts_641(pUnit, Event)
local choix_sorts_641 = math.random(0, 1)
if choix_sorts_641 == 0 then
pUnit:RegisterEvent('spell0_641', 1, 1)
end
if choix_sorts_641 == 1 then
pUnit:RegisterEvent('spell1_641', 1, 1)
end
end

function mob641_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_641', math.random(1500, 3000), 1)
end

function mob641_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob641_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob641_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(641, 1, 'mob641_Action')
RegisterUnitEvent(641, 2, 'mob641_Leave')
RegisterUnitEvent(641, 3, 'mob641_Kill')
RegisterUnitEvent(641, 4, 'mob641_Die')
